<div class="task_breadcrumb schedule_breadcrumb clear">

</div>
<div id="taskDetailDiv clear">
    <div class="task_right_detail_inner" style="margin:0;">

        <!--日程详细 start-->
        <div id="task_detail_head_update" class="task_detail_head schedule_detail_head clear">
            {{if plan.finishStatus == 1}}
                <span class="visit-status-underway"></span>
            {{/if}}
            <div id="task_name_label" class="task_name">{{plan.name}}</div>
            <div class="task_status select_type">
                <div class="select_type_right">
                    <span class="{{plan.colorType.color}}_normal"></span>
                    <span>{{plan.colorType.name}}</span>
                </div>
            </div>
            拜访日期：{{plan.visitDate}}
            <div act="schedule_detail_head">
                <div class="task_breadcrumb schedule_breadcrumb clear">
                    <div class="schedule_operat_area">
                        {{if plan.canModify}}
                            <a class="task-delete js-delete modify" act="modify_schedule">编辑</a>
                            <a class="task-delete js-delete delete" act="delete_schedule">删除</a>
                        {{/if}}
                    </div>
                </div>
             </div>
        </div>
        <div class="task_detail_content schedule_detail_content">
            <div class="task_tip_content">
                <ul>
                    <li class="tip_info">该拜访计划于<span>{{plan.createdDate}} {{plan.createdTime}}</span>由<span><a ucard="uid={{plan.createdBy}}" class="username" href="/final/user.action?uid={{plan.createdBy}}">{{plan.creater}}</a></span>创建</li>
                    <li>{{plan.frequencyRules}}</li>
                </ul>
                <div class="schedule_content">
                    <div class="schedule_field remind_field ">
                        <div class="field_name">起止时间</div>
                        <div class="field_content ">
                            <div class="show_date_content">{{#plan.duration}}</div>
                        </div>
                    </div>
                    <div class="schedule_field remind_field ">
                        <div class="field_name">重复规则</div>
                        <div class="field_content ">
                            <div class="show_date_content">
                                {{if plan.frequency == 0}} 不重复 {{/if}}
                                {{if plan.frequency == 2}} 按周重复 {{/if}}
                                {{if plan.frequency == 3}} 按月重复 {{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="schedule_field remind_field ">
                        <div class="field_name">终端</div>
                        <div class="field_content ">
                            <div class="show_date_content">
                                {{plan.from.name}} {{if plan.finishStatus == 1}}<a href="/final/visit.action?id={{plan.visitRecord.id}}" target="_blank">查看拜访记录</a>{{/if}}
                            </div>
                        </div>
                    </div>
                    <div class="schedule_field relation_field">
                        <div class="field_name">负责人</div>
                        <div class="field_content">
                            <div class="participants">
                                <ul class="task_people_list"><li>{{#plan.members}}</li></ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>